import {
	defineStore
} from 'pinia'

export const tabbarStore = defineStore('tabbarInfo', {
	state: () => {
		return {
			curList: [],
			salesmanTabar: [{
					index: 0,
					label: '订单提交',
					icon: '/static/images/tabbar/salesman/tabbar1.png',
					activeIcon: '/static/images/tabbar/salesman/tabbar1_active.png',
					url: '/pages/salesman/submit'
				},
				{
					index: 1,
					label: '消息',
					icon: '/static/images/tabbar/salesman/tabbar2.png',
					activeIcon: '/static/images/tabbar/salesman/tabbar2_active.png',
					url: '/pages/salesman/message'
				},
				{
					index: 2,
					label: '我的订单',
					icon: '/static/images/tabbar/salesman/tabbar3.png',
					activeIcon: '/static/images/tabbar/salesman/tabbar3_active.png',
					url: '/pages/salesman/order'
				},
			],
			salesmanManagerTabbar: [{
					index: 0,
					label: '待审核订单',
					icon: '/static/images/tabbar/salesmanManager/tabbar1.png',
					activeIcon: '/static/images/tabbar/salesmanManager/tabbar1_active.png',
					url: '/pages/salesmanManager/waitExamine'
				},
				{
					index: 1,
					label: '审核通过订单',
					icon: '/static/images/tabbar/salesmanManager/tabbar2.png',
					activeIcon: '/static/images/tabbar/salesmanManager/tabbar2_active.png',
					url: '/pages/salesmanManager/audited'
				},
				{
					index: 2,
					label: '消息',
					icon: '/static/images/tabbar/salesmanManager/tabbar3.png',
					activeIcon: '/static/images/tabbar/salesmanManager/tabbar3_active.png',
					url: '/pages/salesmanManager/message'
				},
				{
					index: 3,
					label: '历史订单',
					icon: '/static/images/tabbar/purchaserManager/tabbar5.png',
					activeIcon: '/static/images/tabbar/purchaserManager/tabbar5_active.png',
					url: '/pages/salesmanManager/historyOrder'
				}
			],
			purchaserTabbar: [{
					index: 0,
					label: '询价订单',
					icon: '/static/images/tabbar/purchaser/tabbar1.png',
					activeIcon: '/static/images/tabbar/purchaser/tabbar1_active.png',
					url: '/pages/purchaser/InquiryOrder'
				},
				{
					index: 1,
					label: '采购订单',
					icon: '/static/images/tabbar/purchaser/tabbar2.png',
					activeIcon: '/static/images/tabbar/purchaser/tabbar2_active.png',
					url: '/pages/purchaser/purchaseOrder'
				},
				{
					index: 2,
					label: '消息',
					icon: '/static/images/tabbar/purchaser/tabbar3.png',
					activeIcon: '/static/images/tabbar/purchaser/tabbar3_active.png',
					url: '/pages/purchaser/message'
				},
				{
					index: 3,
					label: '历史订单',
					icon: '/static/images/tabbar/purchaser/tabbar4.png',
					activeIcon: '/static/images/tabbar/purchaser/tabbar4_active.png',
					url: '/pages/purchaser/historyOrder'
				}
			],
			purchaserManagerTabbar: [{
					index: 0,
					label: '消息',
					icon: '/static/images/tabbar/purchaserManager/tabbar1.png',
					activeIcon: '/static/images/tabbar/purchaserManager/tabbar1_active.png',
					url: '/pages/purchaserManager/message'
				},
				{
					index: 1,
					label: '待审核订单',
					icon: '/static/images/tabbar/purchaserManager/tabbar2.png',
					activeIcon: '/static/images/tabbar/purchaserManager/tabbar2_active.png',
					url: '/pages/purchaserManager/waitExamine'
				},
				{
					index: 2,
					label: '询价订单',
					icon: '/static/images/tabbar/purchaserManager/tabbar3.png',
					activeIcon: '/static/images/tabbar/purchaserManager/tabbar3_active.png',
					url: '/pages/purchaserManager/InquiryOrder'
				},
				{
					index: 3,
					label: '采购订单',
					icon: '/static/images/tabbar/purchaserManager/tabbar4.png',
					activeIcon: '/static/images/tabbar/purchaserManager/tabbar4_active.png',
					url: '/pages/purchaserManager/purchaseOrder'
				},

				{
					index: 4,
					label: '历史订单',
					icon: '/static/images/tabbar/purchaserManager/tabbar5.png',
					activeIcon: '/static/images/tabbar/purchaserManager/tabbar5_active.png',
					url: '/pages/purchaserManager/historyOrder'
				}

			],
			financeTabbar: [{
					index: 0,
					label: '待打款订单',
					icon: '/static/images/tabbar/finance/tabbar1.png',
					activeIcon: '/static/images/tabbar/finance/tabbar1_active.png',
					url: '/pages/finance/waitPayment'
				},
				{
					index: 1,
					label: '历史订单',
					icon: '/static/images/tabbar/finance/tabbar2.png',
					activeIcon: '/static/images/tabbar/finance/tabbar2_active.png',
					url: '/pages/finance/historyOrder'
				},

			],
		}
	},
	// 也可以这样定义
	// state: () => ({ count: 0 })
	actions: {
		increment() {
			this.count++
		},
	},
})